package com.tongji.housediy.events.designEvent
{
	import com.tongji.housediy.vo.Design;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/4/11
	 */ 
	public class SaveDeleteDesignEvent extends Event
	{
		public static const SAVE_DESIGN:String = "saveDesign";
		public static const SAVE_DESIGN_RESULT:String = "saveDesignResult";
		
		public static const DELETE_DESIGN:String = "deleteDesign";
		
		public static const OPEN_DESIGN:String = "openDesign";
		public static const OPEN_DESIGN_RESULT:String = "openDesignResult";
		
		public var design:Design;
		public var designArray:ArrayCollection;
		
		public function SaveDeleteDesignEvent(type:String, design:Design, designArray:ArrayCollection = null)
		{
			super(type);
			this.design = design;
			this.designArray = designArray;
		}
		
		override public function clone():Event
		{
			return new SaveDeleteDesignEvent(type, design, designArray);
		}
	}
}